#获取不同浏览器的driver
from selenium import webdriver

def init_driver(browerType="chrome",timeout=30):
    driver=None
    if browerType=="chrome":
        driver = webdriver.Chrome()
    elif browerType=="firfox":
        driver=webdriver.Firefox()

    driver.maximize_window()
    driver.implicitly_wait(timeout)

    return driver